package com.jdrx.ocp.beans.dto.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Author: Huangxg
 * @Date: 2018/11/20 16:52
 */
@ApiModel(value = "用户角色DTO" ,description = "用于用户角色分配的DTO")
public class UserRoleDTO {

    @NotNull
    @ApiModelProperty(value = "用户ID" ,required = true)
    private Long userId;

    @ApiModelProperty(value = "角色ID集合",required = true)
    private List<Integer> roleIds;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public List<Integer> getRoleIds() {
        return roleIds;
    }

    public void setRoleIds(List<Integer> roleIds) {
        this.roleIds = roleIds;
    }
}
